
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class PriceAdvertisementBO : Csla.BusinessBase<PriceAdvertisementBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in PriceAdvertisementBO
			//AuthorizationRules.AllowRead(PriceAdvertisementIDProperty, "PriceAdvertisementBOReadGroup");
			//AuthorizationRules.AllowRead(PriceAdvertisementNameProperty, "PriceAdvertisementBOReadGroup");
			//AuthorizationRules.AllowRead(PriceProperty, "PriceAdvertisementBOReadGroup");

			//AuthorizationRules.AllowWrite(PriceAdvertisementNameProperty, "PriceAdvertisementBOWriteGroup");
			//AuthorizationRules.AllowWrite(PriceProperty, "PriceAdvertisementBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of PriceAdvertisementBO
			//AuthorizationRules.AllowCreate(typeof(PriceAdvertisementBO), "PriceAdvertisementBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(PriceAdvertisementBO), "PriceAdvertisementBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(PriceAdvertisementBO), "PriceAdvertisementBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.PriceAdvertisement data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
